package observer;

public class Customer implements ProductObserver{
    @Override
    public void onPublished(Product p) {
        System.out.println("Customer: New product published: " + p.getName());
    }

    @Override
    public void onPriceChanged(Product p) {
        System.out.println("Customer: Price changed: " + p.getName());
    }
}
